<?php
  $this->pageTitle=Yii::app()->name . ' - Register';
  $this->breadcrumbs=array('הרשמה',);
?>
<div dir="rtl">
<h2>טופס רישום</h2>
יש לך חשבון? <?=CHtml::link('<b>התחבר</b>',  array('/grbac/authenticate/login'));?> <br />



<div class="gemiauth">
  <div>
  <?php echo CHtml::form(); ?>
  <?php $form->scenario='register';?>
    <?php echo CHtml::activeLabelEx($form,'username'); ?>
    <?php echo CHtml::activeTextField($form,'username') ?><br />

    <?php echo CHtml::activeLabelEx($form,'email'); ?>
    <?php echo CHtml::activeTextField($form,'email',array('maxlength'=>255)); ?>(לכתובת זו ישלחו העדכונים)<br />

    <?php echo CHtml::activeLabelEx($form,'passwordNew'); ?>
    <?php echo CHtml::activePasswordField($form,'passwordNew',array('maxlength'=>45, 'autocomplete'=>'off')); ?><br />

      <?php echo CHtml::activeLabelEx($form,'passwordNew_repeat'); ?>
    <?php echo CHtml::activePasswordField($form,'passwordNew_repeat',array('maxlength'=>45, 'autocomplete'=>'off')); ?><br />


    <?php echo CHtml::activeLabelEx($form,'namef'); ?>
    <?php echo CHtml::activeTextField($form,'namef') ?><br />

    <?php echo CHtml::activeLabelEx($form,'namel'); ?>
    <?php echo CHtml::activeTextField($form,'namel') ?><br />

    <?php echo CHtml::activeLabelEx($form,'center'); ?>
    <?php echo CHtml::activeDropDownList($form,'center',
    CHtml::listData(centers::model()->findAll(), 'id','name')
            ,
    array('empty' => '-בחר סניף-'));
    ?><br/>

    <?php if(extension_loaded('gd')): ?>

    <?php echo CHtml::activeLabelEx($form,'captcha'); ?>
      <?php echo CHtml::activeTextField($form, 'captcha', array('size'=>10, 'value'=>'', 'autocomplete'=>'off')); ?>
      <?php $this->widget('CCaptcha', array('showRefreshButton' => false)); ?><br/>

      אין חשיבות לאותויות גדולות/קטנות  (case-insensitive).<br />


    <?php endif; ?>

    <?php echo CHtml::activeLabelEx($form,'&nbsp;'); ?>
    <?php echo CHtml::submitButton('הרשם'); ?><p>&nbsp;</p>

    <?php echo CHtml::errorSummary($form); ?>
    </form>
  </div>
  
</div><!-- yiiForm -->
</div><!-- Rtl align -->